package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_l_ck_activity_reward", desc = "活动奖励日志", autoSave = true, uploadCk = true)
public class LogActivityReward extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "活动id", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "活动类型")
    private int activityType;
    @FieldTypeAnnotation(desc = "活动子类型")
    private int childType;
    @FieldTypeAnnotation(desc = "条件id")
    private int conditionId;
    @FieldTypeAnnotation(desc = "排名")
    private int rank;
    @FieldTypeAnnotation(desc = "是否自动")
    private boolean isAuto;
    @FieldTypeAnnotation(desc = "奖励")
    private String reward;

    public LogActivityReward(long userId, int activityId, int activityType, int childType, int conditionId, int rank, boolean isAuto, String reward) {
        this.userId = userId;
        this.activityId = activityId;
        this.activityType = activityType;
        this.childType = childType;
        this.conditionId = conditionId;
        this.rank = rank;
        this.isAuto = isAuto;
        this.reward = reward;
    }

    public long getUserId() {
        return userId;
    }
}
